package com.linkhub.oms.common.constant;

/**
 * @Description: CacheKeyConstant
 * @Author: echo
 * @Date: 2024/3/6 18:33
 * @Version: 1.0
 */
public class CacheKeyConstant {

    public static final String PREFIX = "linkhub:";

    public static final String EMAIL_CODE_KEY = PREFIX + "email:%s:code";

    public static final String ACCOUNT_PASSWORD_ERROR_TIMES_KEY = PREFIX + "email:%s:password:error:times";

    public static final String WHITE_LIST_APPROVAL_LOCK_KEY = PREFIX + "white_list:approval:email:%s:lock";

    public static final String SHOPIFY_DATA_SYNC_LOCK_KEY = PREFIX + "shopify:data:sync:shopId:%s:%s";

    public static final String EMPLOYEE_ORDER_APPROVAL_LOCK_KEY = PREFIX + "employee:order:approval:%s";

    public static final String EMPLOYEE_ORDER_PUSH_TO_WMS_LOCK_KEY = PREFIX + "employee:order:push:to:wms:%s";

    public static final String WMS_RETRY_LOCK_KEY = PREFIX + "wms:retry:lock:key:%s";

    public static final String EMPLOYEE_ORDER_FORECAST_LOCK_KEY = PREFIX + "employee:order:forecast:%s";

    public static final String EMPLOYEE_ORDER_PRINT_LOCK_KEY = PREFIX + "employee:order:print:%s";

    public static final String PRODUCT_PREEMPTION_STOCK_LOCK_KEY = PREFIX + "product:preemption:stock:%s";

    public static final String PRODUCT_PASSAGE_STOCK_LOCK_KEY = PREFIX + "product:passage:stock:%s";

    public static final String LOGISTIC_STATUS_EDIT_LOCK_KEY = PREFIX + "logistic:status:edit:%s";

    public static final String LOGISTIC_THIRD_PART_URL_EDIT_LOCK_KEY = PREFIX + "logistic:third:part:url:edit:%s";

    public static final String ENTRY_ORDER_EDIT_LOCK_KEY = PREFIX + "entry:order:edit:%s";

    public static final String CHANNEL_PRIORITY_EDIT_LOCK_KEY = PREFIX + "channel:priority:edit:%s:%s";

    public static final String LOCAL_PRODUCT_EDIT_LOCK_KEY = PREFIX + "local:product:edit:%s:%s";

    public static final String BANK_STATEMENT_IMPORT_LOCK_KEY = PREFIX + "bank:statement:import";

    // ${userId}:${skuId}:${仓库}
    public static final String STOCK_PASSAGE_UPDATED_LOCK_KEY = PREFIX + "stock:passage:updated:%s:%s:%s";
    public static final String STOCK_PHYSICAL_UPDATED_LOCK_KEY = PREFIX + "stock:physical:updated:%s:%s:%s";
    public static final String STOCK_PREEMPTION_UPDATED_LOCK_KEY = PREFIX + "stock:preemption:updated:%s:%s:%s";
    public static final String STOCK_OUT_UPDATED_LOCK_KEY = PREFIX + "stock:out:updated:%s:%s:%s";

    public static final String TRACK_EVENT_NOTIFY_LOCK_KEY = PREFIX + "track:event:notify:%s";
}
